<template>
  <div>
    <el-card>
      <el-card>
        <div class="box">
          <img src="../../assets/images/tt.gif" />
          <div>
            <h1>{{ greetBasedOnTime() }},{{ name }}</h1>
            <p>湖北生物科技职业学院计算机系作业管理系统</p>
          </div>
        </div>
      </el-card>
      <div class="buttom">
        <img
          src="../../assets/icon/welcome.svg"
          width="500px"
          height="500px"
          alt=""
        />
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { computed, nextTick } from "vue";
import { greetBasedOnTime } from "@/utiles/time";
import useUserStore from "@/stores/modules/userStore";
const userStore = useUserStore();
const UserInfo = userStore.userInfo;
let name = computed(() => {
  return UserInfo.stuName ? UserInfo?.stuName : UserInfo?.teaName;
});
</script>

<style scoped lang="scss">
.box {
  display: flex;

  align-items: center;

  img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-right: 20px;
  }

  H1 {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  p {
    color: skyblue;
    // 文字倾斜
    font-style: italic;
  }
}
.buttom {
  display: flex;
  justify-content: center;
}
</style>
